package cn.swust.designpatternlearningplatform.common.AnnotationUtils;





import cn.swust.designpatternlearningplatform.domain.enums.RoleEnum;

import java.lang.annotation.*;
//拦截规则
@Target({ElementType.METHOD,ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Authentication {

    /**
     * 权限列表
     */
    RoleEnum[] value() default {RoleEnum.STUDENT,RoleEnum.TEACHER};
}
